import { createApp } from "vue";
// import './style.css'
import App from "./App.vue";
import router from "./router";
import "tailwindcss/tailwind.css";
import "vant/lib/index.css";
import "vant/es/toast/style";
import "vant/es/picker/style";
import "vant/es/image-preview/style";
import jssdk from "weixin-js-sdk";
import {
  Form,
  Field,
  CellGroup,
  Checkbox,
  CheckboxGroup,
  Button,
  NavBar,
  Tabbar,
  TabbarItem,
  Icon,
  Popup,
  DatePicker,
  Picker,
  Uploader,
  Swipe,
  SwipeItem,
  Area,
  List,
  Loading,
  Overlay,
} from "vant";
const app = createApp(App);
app
  .use(router)
  .use(Button)
  .use(NavBar)
  .use(Form)
  .use(Field)
  .use(CellGroup)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Icon)
  .use(Popup)
  .use(DatePicker)
  .use(Picker)
  .use(Uploader)
  .use(Swipe)
  .use(SwipeItem)
  .use(Area)
  .use(List)
  .use(Loading)
  .use(Overlay);

import Info from "@/utils/axios";
app.provide("loading", Info.loading);
app.config.globalProperties.$wx = jssdk;
app.provide("global", {
  oss_url: "https://hfbqw.oss-cn-shanghai.aliyuncs.com/",
  accessKeyId: "LTAI5t9XhY21FrSHYm5XeYMN",
  accessKeySecret: "ENOdXFq7Gyrvgdcq6qDGCQT4VHbZtC",
  bucket: "hfbqw",
  region: "oss-cn-shanghai",
});
router.isReady().then(() => app.mount("#app"));
